<%= render :partial => 'submenu' %>
<div id="column-1" class="column" style="width: 75%">
	
	<%= error_messages_for 'profile' %>
	
	<!-- Profile Edit Form -->
	<% tagged_form_for :profile, @profile do |f| %>
		<fieldset>
			<legend>Pers&ouml;nliche Daten</legend>
			
			<p>
				<label for="profile_gender">Geschlecht:</label>
				<select id="profile_gender" name="profile[gender]">
					<option <%= "selected" if @profile.gender == "1" %> 
							value="1">
								Mann
					</option>
					<option <%= "selected" if @profile.gender == "2" %> 
							value="2">
								Frau
					</option>
				</select>
			</p>
			
			<%= f.text_field :forename %>
			<%= f.text_field :surname %>
			
			<%= render :partial => "layouts/save_button" %>
			
		</fieldset>
		
		<fieldset>
			<legend>Dein Standort</legend>
			
			<%= f.text_field :street %>
			<%= f.text_field :zipcode %>
			<%= f.text_field :city %>
			<%= f.text_field :distinct %>
			<%= f.text_field :country %>
			
			<%= render :partial => "layouts/save_button" %>
			
		</fieldset>
		
		<fieldset>
			<legend>Dein Bild</legend>
			
			<%= link_to_profile session[:user_id], 'medium' %>
			
			<%=f.file_field 'file' %>
			
			<%= render :partial => "layouts/save_button" %>
			
		</fieldset>
	<% end %>
		
</div>